package com.kaili.basic.service.impl;

import com.kaili.basic.pojo.entity.BaseNewsRange;
import com.kaili.basic.mapper.BaseNewsRangeMapper;
import com.kaili.basic.service.BaseNewsRangeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: dxj
 * @descrinption: Created by dxj on 18-6-27.
 * @modified:
 */
@Service
public class BaseNewsRangeServiceImpl implements BaseNewsRangeService {

    @Autowired
    private BaseNewsRangeMapper newsRangeMapper;

    @Override
    public boolean addNewsRange(BaseNewsRange newsRange) {
        int flag = newsRangeMapper.addNewsRange(newsRange);
        if (flag>0){
            return true;
        }else{
            return false;
        }

    }
}
